import { Injectable } from '@nestjs/common';
import { TypeOrmCrudService } from '@nestjsx/crud-typeorm';
import { Log } from './log.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';

@Injectable()
export class LogService extends TypeOrmCrudService<Log>{
    constructor(
        @InjectRepository(Log)
        repo: Repository<Log>,

    ) {
        super(repo);
    }
    async addLog(logDto: any) {
        let result =await this.repo.save(logDto);
        return result;
    }
}
